package com.atguigu.yygh.user.client;


import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Repository
@FeignClient(value = "service-user")
public interface PatientFeignClient {

    /**
     * @description: 根据id获取就诊人的信息
     * @author 化一帆
     * @date 2022/12/8 18:54
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    //pathVariable中的属性不能省略
    public Patient getPatientOrder(@PathVariable("id") Long id);

    /**
     * @description:  通过手机号查询用户
     * @author 化一帆
     * @date 2022/12/11 18:56
     */
    @GetMapping("/api/user/patient/getUserPhone/{userId}")
    public String getUserPhone(@PathVariable("userId") Long userId);
}
